package com.xlhj.dynamic.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xlhj.dynamic.common.SexEnum;
import com.xlhj.dynamic.common.StatusEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: caijliu
 * @description: SysUserInfo
 * @data: 06/08/2021 9:03
 */
@Data
@Accessors(chain = true)
@TableName(autoResultMap = true)
public class SysUserInfo implements Serializable {

    private static final long serialVersionUID = 74963334467992708L;
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    private String userName;

    private String phone;

    private SexEnum sex;

    private Byte age;

    private String addr;

    private StatusEnum status;

    @TableLogic
    private Byte delFlag;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
